본문으로 건너뛰기

config-map 설정

운영 상태 점검을 위한 metrics 값들

19090 포트를 통해 metrics 정보 조회 가능 (management.server.port / application-docker.yml)


Prometheus Sample

# HELP disk_free_bytes Usable space for path
# TYPE disk_free_bytes gauge
disk_free_bytes{application="shieldrive-extraction",path="D:\\dev\\maxeon\\backend\\workspace\\ApiExtractionSvr\\.",} 2.63655067648E11

# HELP disk_total_bytes Total space for path
# TYPE disk_total_bytes gauge
disk_total_bytes{application="shieldrive-extraction",path="D:\\dev\\maxeon\\backend\\workspace\\ApiExtractionSvr\\.",} 6.29144547328E11

# HELP jvm_memory_committed_bytes The amount of memory in bytes that is committed for the Java virtual machine to use
# TYPE jvm_memory_committed_bytes gauge
jvm_memory_committed_bytes{application="shieldrive-extraction",area="heap",id="G1 Survivor Space",} 1.2582912E7
jvm_memory_committed_bytes{application="shieldrive-extraction",area="nonheap",id="Metaspace",} 7.069696E7
jvm_memory_committed_bytes{application="shieldrive-extraction",area="nonheap",id="CodeHeap 'non-nmethods'",} 2555904.0
jvm_memory_committed_bytes{application="shieldrive-extraction",area="heap",id="G1 Eden Space",} 2.01326592E8
jvm_memory_committed_bytes{application="shieldrive-extraction",area="nonheap",id="CodeHeap 'non-profiled nmethods'",} 1.2648448E7
jvm_memory_committed_bytes{application="shieldrive-extraction",area="nonheap",id="Compressed Class Space",} 9961472.0
jvm_memory_committed_bytes{application="shieldrive-extraction",area="heap",id="G1 Old Gen",} 2.64241152E8

# HELP jvm_memory_max_bytes The maximum amount of memory in bytes that can be used for memory management
# TYPE jvm_memory_max_bytes gauge
jvm_memory_max_bytes{application="shieldrive-extraction",area="heap",id="G1 Survivor Space",} -1.0
jvm_memory_max_bytes{application="shieldrive-extraction",area="nonheap",id="Metaspace",} -1.0
jvm_memory_max_bytes{application="shieldrive-extraction",area="nonheap",id="CodeHeap 'non-nmethods'",} 7602176.0
jvm_memory_max_bytes{application="shieldrive-extraction",area="heap",id="G1 Eden Space",} -1.0
jvm_memory_max_bytes{application="shieldrive-extraction",area="nonheap",id="CodeHeap 'non-profiled nmethods'",} 2.44056064E8
jvm_memory_max_bytes{application="shieldrive-extraction",area="nonheap",id="Compressed Class Space",} 1.073741824E9
jvm_memory_max_bytes{application="shieldrive-extraction",area="heap",id="G1 Old Gen",} 1.7142120448E10

# HELP jvm_memory_used_bytes The amount of used memory
# TYPE jvm_memory_used_bytes gauge
jvm_memory_used_bytes{application="shieldrive-extraction",area="heap",id="G1 Survivor Space",} 1.2364752E7
jvm_memory_used_bytes{application="shieldrive-extraction",area="nonheap",id="Metaspace",} 6.806232E7
jvm_memory_used_bytes{application="shieldrive-extraction",area="nonheap",id="CodeHeap 'non-nmethods'",} 1468416.0
jvm_memory_used_bytes{application="shieldrive-extraction",area="heap",id="G1 Eden Space",} 5.4525952E7
jvm_memory_used_bytes{application="shieldrive-extraction",area="nonheap",id="CodeHeap 'non-profiled nmethods'",} 1.2382976E7
jvm_memory_used_bytes{application="shieldrive-extraction",area="nonheap",id="Compressed Class Space",} 8997712.0
jvm_memory_used_bytes{application="shieldrive-extraction",area="heap",id="G1 Old Gen",} 1.58804992E8

# HELP tomcat_threads_config_max_threads
# TYPE tomcat_threads_config_max_threads gauge
tomcat_threads_config_max_threads{application="shieldrive-extraction",name="http-nio-33003",} 256.0

# HELP tomcat_threads_busy_threads
# TYPE tomcat_threads_busy_threads gauge
tomcat_threads_busy_threads{application="shieldrive-extraction",name="http-nio-33003",} 0.0

# HELP tomcat_threads_current_threads
# TYPE tomcat_threads_current_threads gauge
tomcat_threads_current_threads{application="shieldrive-extraction",name="http-nio-33003",} 256.0

# HELP process_cpu_usage The "recent cpu usage" for the Java Virtual Machine process
# TYPE process_cpu_usage gauge
process_cpu_usage{application="shieldrive-extraction",} 0.003316356498872581

# HELP custom_rabbitmq_status RabbitMQ 연결 상태 (1=UP, 0=DOWN)
# TYPE custom_rabbitmq_status gauge
custom_rabbitmq_status{application="shieldrive-extraction",} 1.0

# HELP custom_webclient_status WebClient 연결 상태 (1=UP, 0=DOWN)
# TYPE custom_webclient_status gauge
custom_webclient_status{application="shieldrive-extraction",service="sdf",} 0.0
custom_webclient_status{application="shieldrive-extraction",service="shieldrive",} 1.0
custom_webclient_status{application="shieldrive-extraction",service="oauth",} 1.0

# HELP custom_redis_status Redis 상태 (1=UP, 0=DOWN)
# TYPE custom_redis_status gauge
custom_redis_status{application="shieldrive-extraction",} 1.0